package org.zhxy.common.config;

import com.github.tobato.fastdfs.service.FastFileStorageClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.zhxy.common.utils.BaiduAiUtil;

import javax.annotation.PostConstruct;

@Configuration
public class ServerFactory {

    @Autowired
    private FastFileStorageClient fsc;
    public static FastFileStorageClient fastFileStorageClient;
    @Autowired
    private BaiduAiUtil bu;
    public static BaiduAiUtil baiduAiUtil;

    @PostConstruct
    public void serverInit(){
        fastFileStorageClient = this.fsc;
        baiduAiUtil = this.bu;
    }
}
